package com.sand.service;

import com.sand.entity.TAuthorityEntity;
import com.sand.entity.TUserEntity;
import com.sand.util.PageModel;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface IAuthService {
    String queryAuthByUser(TUserEntity user, HttpServletRequest request);
    List<TAuthorityEntity> queryAuthByRoleId(int id);
    List<Map<String,Object>> queryAuthLevelAll();
    List<TAuthorityEntity> queryAuthAll();
    PageModel<TAuthorityEntity> queryAuthLimit(int limit,int page,String condition);
    TAuthorityEntity queryAuthById(int id);

    boolean addAuth(String data);
    boolean updateAuth(String data);
    boolean delAuth(String data);





}
